#include <iostream>
using std::endl;
using std::cout;
using std::cin;


class data
{
public:
    data(int a = 1, int b = 2, char c = 'x')
        :_a(a),
        _b(b),
        _c(c)
    {
        cout << "data" << endl;
    };
    ~data()
    {
        cout << "~data" << endl;
    }
private:
    int _a;
    int _b;
    char _c;
};

int main()
{
    data* x = new data;
    delete x;
    cout << "main end" << endl;
    return 0;
}